class DeviceInfoModel {
  String appVerison;
  String ip;
  double lat;
  double lon;

  /// 手机唯一id
  String deviceid;

  /// 手机系统
  String system;

  /// 手机系统版本
  String version;

  /// 手机品牌
  String brand;

  /// 手机型号
  String model;

  String country;
  String province;
  String city;
  String district;
  String address;

  String channel;

  DeviceInfoModel({
    this.appVerison,
    this.ip,
    this.lat,
    this.lon,
    this.deviceid,
    this.system,
    this.version,
    this.brand,
    this.model,
    this.country,
    this.province,
    this.city,
    this.district,
    this.address,
    this.channel,
  });

  DeviceInfoModel.fromJson(Map<String, dynamic> json) {
    appVerison = json['app_verison'];
    ip = json['ip'];
    lat = json['lat'];
    lon = json['lon'];
    deviceid = json['deviceid'];
    system = json['system'];
    version = json['version'];
    brand = json['brand'];
    model = json['model'];
    country = json['country'];
    province = json['province'];
    city = json['city'];
    district = json['district'];
    address = json['address'];
    channel = json['channel'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['app_verison'] = this.appVerison;
    data['ip'] = this.ip;
    data['lat'] = this.lat;
    data['lon'] = this.lon;
    data['deviceid'] = this.deviceid;
    data['system'] = this.system;
    data['version'] = this.version;
    data['brand'] = this.brand;
    data['model'] = this.model;
    data['country'] = this.country;
    data['province'] = this.province;
    data['city'] = this.city;
    data['district'] = this.district;
    data['address'] = this.address;
    data['channel'] = this.channel;
    return data;
  }
}
